package com.lejin.item.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lejin.item.entity.CourseReply;
import com.lejin.item.mapper.CourseReplyMapper;
import com.lejin.item.service.ICourseReplyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author luminghua
 * @since 2022-04-21
 */
@Service
public class CourseReplyServiceImpl extends ServiceImpl<CourseReplyMapper, CourseReply> implements ICourseReplyService {


    @Autowired
    CourseReplyMapper replyMapper;
    @Override
    public List<CourseReply> findReplyAndUserByCid(Integer cid) {
        List<CourseReply> replyAndUserByCid = replyMapper.findReplyAndUserByCid(cid);

        return replyAndUserByCid;
    }
}
